package com.yufaye.struts;

public class loginAction {
	private String usernameString;
	private String passwordString;

	public String getUsernameString() {
		return usernameString;
	}

	public void setUsernameString(String usernameString) {
		this.usernameString = usernameString;
	}

	public String getPasswordString() {
		return passwordString;
	}

	public void setPasswordString(String passwordString) {
		this.passwordString = passwordString;
	}
	
	public String execute() {
		System.out.println(usernameString);
		System.out.println(passwordString);
		if (usernameString.trim().equalsIgnoreCase("admin")&&passwordString.equals("123456")) {
			return "suc";
			//return SUCCESS;
		} else {
			return "fail";
			//return SUCCESS;
		}
	}
}
